# @FileName  : test0.py
# @Time      : 2025/2/16 19:41
# @Author    : LuZhaoHui
# @Software  : PyCharm

import torch
from modelscope import Model
from modelscope.pipelines import pipeline
from PIL import Image

import json
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks


# 假设你的模型是用于文本分类任务
model_id = 'D:/AiModel/modelscope/mlx-community/Qwen2.5-3B-Instruct-4bit'  # 替换为你的本地模型路径

# 示例代码：假设你正在使用 TensorFlow 或 Keras
from tensorflow.keras.models import load_model

model = load_model('path/to/your/local/model')
result = model.predict(some_test_data)
print(result)